<template>
    <div id="app">
        <nav>
            <router-link to="/">Home</router-link> |
            <router-link to="/myInfo">myInfo</router-link>|
            <router-link to="/myCar">myCar</router-link>|
            <router-link to="/componentMessage">组件通信</router-link>|
            <router-link to="/vuex/123">VUEX</router-link>|
            <router-link to="/vuex/234">VUEX126</router-link>|
            <router-link to="/routerLink">路由跳转</router-link>|
            <router-link to="/mixin">mixin</router-link>|
            <router-link to="/watch">watch</router-link>|
            <router-link to="/slot">slot</router-link>|
            <router-link to="/keepalive">keep-alive</router-link>|
        </nav>

        <router-view />
    </div>
</template>

<style scoped lang="less">
#app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
}
.MyInfo {
    color: #42b983;
}
.myspan {
    color: rgb(72, 75, 75) !important;
}
nav {
    padding: 30px;

    a {
        font-weight: bold;
        color: #2c3e50;

        &.router-link-exact-active {
            color: #42b983;
        }
    }
}
</style>
